﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SilowniaFitness.Template
{
    public partial class Menu : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public void setActiveMenuItem(String category)
        {
            foreach (Control it in Controls)
            {
                if (it.GetType().BaseType == typeof(MenuItem))
                {
                    if (((MenuItem)it).category == category)
                    {
                        ((MenuItem)it).setSelected();
                    }
                }
            }
        }
    }
}